using System;
using System.Collections.Generic;
using DapperExtensions.Mapper;
using MHI.InspectionManager.Interfaces; 

namespace MHI.InspectionManager.Data
{
	public class DevJobsparepartTMapper : ClassMapper<DevJobsparepartT>
	{
		public DevJobsparepartTMapper()
		{
			Table("dev_jobsparepart_t");
			Map(f => f.Id).Column("id").Key(KeyType.Assigned);
			Map(f => f.JobId).Column("job_id");
			Map(f => f.Name).Column("name");
			Map(f => f.Code).Column("code");
			Map(f => f.Sparetype).Column("sparetype");
			Map(f => f.Price).Column("price");
			Map(f => f.Remark).Column("remark");
			Map(f => f.SparepartCount).Column("sparepart_count");
			Map(f => f.GmtCreated).Column("gmt_created");
			Map(f => f.PersonModified).Column("person_modified");
			Map(f => f.GmtModified).Column("gmt_modified");
			Map(f => f.StateInfo).Column("state_info");
			Map(f => f.IsUse).Column("is_use");
			Map(f => f.Version).Column("version");
		}
	}
}
